/*
 * Created on 2005-7-8
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.sohu.sip.auth.business.result;

import java.util.Collection;

import com.sohu.sip.auth.middletier.BusinessResult;
import com.sohu.sip.auth.po.AdminPartnerUser;
import com.sohu.sip.auth.po.AdminUser;
import com.sohu.sip.auth.util.RunManager;

/**
 * @author luciali
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class UserUpdateResult implements BusinessResult {
    private AdminUser adminUser;

    private AdminPartnerUser partnerUser;

    private Collection cActor;

    /**
     * @return Returns the cActor.
     */
    public Collection getCActor() {
        return cActor;
    }

    /**
     * @param actor
     *            The cActor to set.
     */
    public void setCActor(Collection actor) {
        cActor = actor;
    }

    /**
     * @return Returns the adminUser.
     */
    public AdminUser getAdminUser() {
        return adminUser;
    }

    /**
     * @param adminUser
     *            The adminUser to set.
     */
    public void setAdminUser(AdminUser adminUser) {
        this.adminUser = adminUser;
    }

    private long status;

    /**
     * @param stauts
     *            The stauts to set.
     */
    public void setStatus(long status) {
        this.status = status;
    }

    /*
     * (non-Javadoc)
     * 
     * @see com.sohu.sip.auth.middletier.BusinessResult#getStatus()
     */
    public long getStatus() {
        return this.status;
    }

    /*
     * (non-Javadoc)
     * 
     * @see com.sohu.sip.auth.middletier.BusinessResult#parse(java.lang.String)
     */
    public void parse(String str) {

    }

    public String toString() {
        String eventString = "";
        RunManager manager = RunManager.getInstance();
        String separator = manager.getSeparator();
        eventString = status + separator;
        return eventString;
    }

    public AdminPartnerUser getPartnerUser() {
        return partnerUser;
    }

    public void setPartnerUser(AdminPartnerUser partnerUser) {
        this.partnerUser = partnerUser;
    }

}